package com.eascs.web.o2o.web.aging.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@Entity
@Table(name="o2o_employee")
public class SysUser implements Serializable{
    private static final long serialVersionUID = 8637974064541744701L;

    /** 员工编号(主键) */
    @Column(name = "employee_no")
   	@Id
    private Integer employeeNo;

    /** 员工工号 */
    @Column(name = "employee_code")
    private String employeeCode;

    /** 用户名称 */
    @Column(name = "employee_namecn")
    private String employeeNamecn;
    
    /** 用户账号 */
    @Column(name = "employee_account")
    private String employeeAccount;
    
    /** 所在部门编号	 */
    @Column(name = "node_id")
    private Integer nodeId;

    /** 手机号 */
    @Column(name = "mobile")
    private String mobile;
    
    @Column(name = "telephone")
    private String telephone;
    
    @Column(name = "email")
    private String email;
    
    /** 所在经营单位 */
    @Column(name = "operation_dept")
    private Integer operationDept;
    /** 创建人编号 */
    @Column(name = "creator_no")
    private Integer creatorNo;
    /** 修改人编号 */
    @Column(name = "modifier_no")
    private Integer modifierNo;

    /** 修改日期*/
    @Column(name = "modify_date")
    @Temporal(TemporalType.TIMESTAMP)
    private Date modifyDate;
    
    /** 创建时间*/
    @Column(name = "create_date")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createDate;

    /*以下为非数据库字段*/
    @Transient
    private List<SysRole> roles;

	public Integer getEmployeeNo() {
		return employeeNo;
	}

	public void setEmployeeNo(Integer employeeNo) {
		this.employeeNo = employeeNo;
	}

	public String getEmployeeCode() {
		return employeeCode;
	}

	public void setEmployeeCode(String employeeCode) {
		this.employeeCode = employeeCode;
	}

	public String getEmployeeNamecn() {
		return employeeNamecn;
	}

	public void setEmployeeNamecn(String employeeNamecn) {
		this.employeeNamecn = employeeNamecn;
	}

	public String getEmployeeAccount() {
		return employeeAccount;
	}

	public void setEmployeeAccount(String employeeAccount) {
		this.employeeAccount = employeeAccount;
	}

	public Integer getNodeId() {
		return nodeId;
	}

	public void setNodeId(Integer nodeId) {
		this.nodeId = nodeId;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getOperationDept() {
		return operationDept;
	}

	public void setOperationDept(Integer operationDept) {
		this.operationDept = operationDept;
	}

	public Integer getCreatorNo() {
		return creatorNo;
	}

	public void setCreatorNo(Integer creatorNo) {
		this.creatorNo = creatorNo;
	}

	public Integer getModifierNo() {
		return modifierNo;
	}

	public void setModifierNo(Integer modifierNo) {
		this.modifierNo = modifierNo;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public List<SysRole> getRoles() {
		return roles;
	}

	public void setRoles(List<SysRole> roles) {
		this.roles = roles;
	}

    
}